package org.xp.judgeplatform.pojo.dto.ProblemDTO;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ProblemCreateDTO {
    @NotBlank(message = "题目标题不能为空")
    private String title;

    @NotBlank(message = "题目描述不能为空")
    private String description;

    @NotBlank(message = "难度不能为空")
    private String difficulty;     // 简单、中等、困难

    private String category = "算法";
    private String inputDescription;
    private String outputDescription;
    private String sampleInput;
    private String sampleOutput;
    private String hint;

    @NotNull(message = "时间限制不能为空")
    private Integer timeLimit = 1000;

    @NotNull(message = "内存限制不能为空")
    private Integer memoryLimit = 256;

    private Integer totalScore = 100;
    private String status = "草稿";
    private Boolean isPublic = true;
}
